<?php
if(!class_exists('XLog4YaxFileAppender', false)){
	require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'XLog4YaxFileAppender.php');
}
class XLog4YaxDailyFileAppender extends XLog4YaxFileAppender{
	/**
	 * @return XFile
	 */	
	protected function getFile($params = array()){
		if(isset($params['file'])){
			$this->file = $params['file'];
		}
		$this->file = PROJECT_ROOT.DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR.$this->file.'-'.date("Ymd").'.log';
		return new XFile($this->file);	
	}	
}
?>